package com.zr.vo.dispatch;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zr.vo.BaseVo;
import com.zr.vo.car.CarInfo;

import java.util.Date;

public class DispatchAbnormalRecord extends BaseVo {
    private Integer id;

    private String aid;

    private String ticketId;

    private String abnormalType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date abnormalTime;

    private String abnormalAddress;

    private String abnormalDescribe;

    private Integer acceptResult;

    private String acceptDescribe;

    private String status;

    private DispatchAcceptResult dispatchAcceptResult;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date modifyTime;

    private DispatchTicket dispatchTicket;

    private CarInfo carInfo;
    private String number;

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAid() {
        return aid;
    }

    public void setAid(String aid) {
        this.aid = aid == null ? null : aid.trim();
    }

    public String getTicketId() {
        return ticketId;
    }

    public void setTicketId(String ticketId) {
        this.ticketId = ticketId == null ? null : ticketId.trim();
    }

    public String getAbnormalType() {
        return abnormalType;
    }

    public void setAbnormalType(String abnormalType) {
        this.abnormalType = abnormalType == null ? null : abnormalType.trim();
    }

    public Date getAbnormalTime() {
        return abnormalTime;
    }

    public void setAbnormalTime(Date abnormalTime) {
        this.abnormalTime = abnormalTime;
    }

    public String getAbnormalAddress() {
        return abnormalAddress;
    }

    public void setAbnormalAddress(String abnormalAddress) {
        this.abnormalAddress = abnormalAddress == null ? null : abnormalAddress.trim();
    }

    public Integer getAcceptResult() {
        return acceptResult;
    }

    public void setAcceptResult(Integer acceptResult) {
        this.acceptResult = acceptResult;
    }

    public String getAcceptDescribe() {
        return acceptDescribe;
    }

    public void setAcceptDescribe(String acceptDescribe) {
        this.acceptDescribe = acceptDescribe == null ? null : acceptDescribe.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public DispatchTicket getDispatchTicket() {
        return dispatchTicket;
    }

    public void setDispatchTicket(DispatchTicket dispatchTicket) {
        this.dispatchTicket = dispatchTicket;
    }

    public CarInfo getCarInfo() {
        return carInfo;
    }

    public void setCarInfo(CarInfo carInfo) {
        this.carInfo = carInfo;
    }

    public String getAbnormalDescribe() {
        return abnormalDescribe;
    }

    public void setAbnormalDescribe(String abnormalDescribe) {
        this.abnormalDescribe = abnormalDescribe;
    }

    public DispatchAcceptResult getDispatchAcceptResult() {
        return dispatchAcceptResult;
    }

    public void setDispatchAcceptResult(DispatchAcceptResult dispatchAcceptResult) {
        this.dispatchAcceptResult = dispatchAcceptResult;
    }

    @Override
    public String toString() {
        return "DispatchAbnormalRecord{" +
                "id=" + id +
                ", aid='" + aid + '\'' +
                ", ticketId='" + ticketId + '\'' +
                ", abnormalType='" + abnormalType + '\'' +
                ", abnormalTime=" + abnormalTime +
                ", abnormalAddress='" + abnormalAddress + '\'' +
                ", acceptResult='" + acceptResult + '\'' +
                ", acceptDescribe='" + acceptDescribe + '\'' +
                ", status='" + status + '\'' +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                ", dispatchTicket=" + dispatchTicket +
                ", carInfo=" + carInfo +
                '}';
    }
}